<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<script src="js/vue.js"></script>
	<body>
		<div id="app">
			<input v-model="msg" type="text">
			<div>{{ msg | filterA}}</div>
		</div>
	</body>
	<script>
		Vue.filter('filterA', function (value){
			console.log(value)
			return value.split(' ').join('');
		});
		
		var app = new Vue({
			el:"#app",
			data:{
				msg:"",
			},
			methods:{
				
			},
				
		})
	</script>
</html>